package(default_visibility=["//visibility:public"])
load("@angular//:index.bzl", "ng_module")
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library", "ts_web_test")


ng_module(
  name = "scrolling",
  srcs = glob(["**/*.ts"], exclude=["**/*.spec.ts"]),
  module_name = "@angular/cdk-experimental/scrolling",
  deps = [
    "//src/cdk/coercion",
    "//src/cdk/collections",
    "//src/cdk/scrolling",
    "@rxjs",
  ],
  tsconfig = "//src/cdk-experimental:tsconfig-build.json",
)

ts_library(
  name = "scrolling_test_sources",
  testonly = 1,
  srcs = glob(["**/*.spec.ts"]),
  deps = [
    ":scrolling",
    "//src/cdk/scrolling",
    "//src/cdk/testing",
    "@rxjs",
  ],
  tsconfig = "//src/cdk-experimental:tsconfig-build.json",
)

ts_web_test(
  name = "unit_tests",
  bootstrap = [
    "//:web_test_bootstrap_scripts",
  ],
  # Do not sort
  deps = [
    "//:tslib_bundle",
    "//:angular_bundles",
    "//:angular_test_bundles",
    "//test:angular_test_init",
    ":scrolling_test_sources",
  ],
)
